﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddArticle.aspx.cs" Inherits="Users_AddArticle" %>

<%@ Register assembly="DotNetTextBox" namespace="DotNetTextBox" tagprefix="DNTB" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <%=this.UI_Head(Base_CurrPath, "", "")%>
</head>
    <asp:PlaceHolder Visible="false" runat="server">
         <script src="../Script/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>
    </asp:PlaceHolder>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />
    <script src="../Script/formValidator/jquery_last.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidator.js" type="text/javascript"></script>
    <script src="../Script/formValidator/formValidatorRegex.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/formValidator/DateTimeMask.js" type="text/javascript"></script>
    <script src="../Script/ConvertTime.js" type="text/javascript"></script> 
    <script src="../Script/province.aspx"></script>
    <script src="../Script/popup.js"></script>
    <link rel="stylesheet" type="text/css" href="../Css/Users.css" />
    <link href="../Script/formValidator/style/validator.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(document).ready(function() {
        $.formValidator.initConfig({ alertmessage: false, formid: "netmu_Form", onerror: function(msg) { alert(msg) } });
        $("#txtArticleTitle").formValidator({ tipid: "txtArticleTitleTip", onshow: "请输入文章标题", onfocus: "文章标题不能为空", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 30, empty: { leftempty: false, rightempty: false, emptyerror: "文章标题两边不能有空符号" }, onerror: "文章标题长度必须在1-30位,请确认" });
        $("#txtKeyWord").formValidator({ empty: true, tipid: "txtKeyWordTip", onshow: "请输入关键字", onfocus: "关键字为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 15, empty: { leftempty: false, rightempty: false, emptyerror: "关键字两边不能有空符号" }, onerror: "关键字长度必须在1-50位,请确认" });
        $("#txtAuthor").formValidator({ empty: true, tipid: "txtAuthorTip", onshow: "请输入作者", onfocus: "作者为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 30, empty: { leftempty: false, rightempty: false, emptyerror: "作者两边不能有空符号" }, onerror: "作者长度必须在1-25位,请确认" });
        $("#txtCopyFrom").formValidator({ empty: true, tipid: "txtCopyFromTip", onshow: "请输入转贴内容", onfocus: "转帖内容为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 30, empty: { leftempty: false, rightempty: false, emptyerror: "转帖内容两边不能有空符号" }, onerror: "转贴内容长度必须在1-30位,请确认" });
        $("#txtTitleFont").formValidator({ empty: true, tipid: "txtTitleFontTip", onshow: "请输入标题字体大小", onfocus: "标题字体大小为可选项", oncorrect: "输入正确" }).inputValidator({ min: 1, max: 30, empty: { leftempty: false, rightempty: false, emptyerror: "标题字体大小两边不能有空符号" }, onerror: "标题字体大小长度必须在1-30位,请确认" });
        $("#WebEditor1").formValidator({ tipid: "WebEditor1Tip", onshow: "请输入文章内容", onfocus: "文章内容不能为空", oncorrect: "输入正确" }).inputValidator({ empty: { leftempty: false, rightempty: false, emptyerror: "文章内容两边不能有空符号" }, onerror: "文章内容不能为空,请确认" });
        });
    
    </script>
<body style="margin:0px; background:white;">
<form id="netmu_Form" runat="server">
<table cellpadding="0" cellspacing="0" border="0" width="100%" align=center  bgcolor="white" >
<tr align="center" class="tdbg" > 
<td height="40">
 <asp:Panel ID="Panel2" runat="server" Visible="true" >    
    <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolordark="#FFFFFF">
<%--        <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>所属栏目:</strong></td>
            <td width="82%" align="left" style="padding:4px;">
                <asp:DropDownList ID="ddlItems" runat="server" Height="16px" Width="130px" 
                    >
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>所属类型:</strong></td>
            <td width="82%" align="left" style="padding:4px;">
                <asp:DropDownList ID="ddlChannelType" Enabled="false" runat="server" Height="16px" Width="130px" 
                     >
                </asp:DropDownList></td>
        </tr>--%>
        <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>文章标题:</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" ><div>
                <asp:TextBox ID="txtArticleTitle" runat="server" Width="255px"></asp:TextBox><asp:CheckBox ID="chkTitleFontBlod" runat="server" />粗体&nbsp;&nbsp;<asp:CheckBox ID="chkTitleFontIta" runat="server" />斜体</div><div id="txtArticleTitleTip">*如果你已经向管理员申请过馆号，可自己填写&nbsp;&nbsp;</div> <a href="User_Applic.Aspx" style=" text-decoration:underline;" target="_blank" ></a>
                        </td>
        </tr>
        <tr style="display:none;">
            <td width="18%" align="center" style="padding:4px;"><strong>标题字体大小:</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" ><div>
                <asp:TextBox ID="txtTitleFont" runat="server"></asp:TextBox></div><div id="txtTitleFontTip"></div> <a href="User_Applic.Aspx" style=" text-decoration:underline;" target="_blank" ></a>
                        </td>
        </tr>
        <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>标题颜色:</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv" ><div>
                 <select runat="server" id="txtTitleFontColor">
                 <OPTION value="#000000" style="background-color:#000000"></OPTION>
                <OPTION value="#FFFFFF" style="background-color:#FFFFFF"></OPTION>
                <OPTION value="#008000" style="background-color:#008000"></OPTION>
                <OPTION value="#800000" style="background-color:#800000"></OPTION>
                <OPTION value="#808000" style="background-color:#808000"></OPTION>
                <OPTION value="#000080" style="background-color:#000080"></OPTION>
                <OPTION value="#800080" style="background-color:#800080"></OPTION>
                <OPTION value="#808080" style="background-color:#808080"></OPTION>
                <OPTION value="#FFFF00" style="background-color:#FFFF00"></OPTION>
                <OPTION value="#00FF00" style="background-color:#00FF00"></OPTION>
                <OPTION value="#00FFFF" style="background-color:#00FFFF"></OPTION>
                <OPTION value="#FF00FF" style="background-color:#FF00FF"></OPTION>
                <OPTION value="#FF6600" style="background-color:#FF6600"></OPTION>
                <OPTION value="#0066cc" style="background-color:#0066cc"></OPTION>
                <OPTION value="#008080" style="background-color:#008080"></OPTION>               
                </select>   
                </div>
                        </td>
        </tr>
        <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>关键字:		</strong></td>
            <td width="82%" align="left" style="padding:4px;" class="tdIndiv">
                    <div>
                <asp:TextBox ID="txtKeyWord" runat="server" MaxLength="30" Width="275px"></asp:TextBox></div>
                      <div id="txtKeyWordTip" >*建议使用中文，限50个字以内</div></td>
        </tr>
        <tr>
            <td width="18%" align="center" style="padding:4px;" ><strong>作者:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"class="tdIndiv"  ><div><asp:TextBox ID="txtAuthor"  MaxLength="30"
                    runat="server" Width="162px"></asp:TextBox></div> <div  id="txtAuthorTip" >*</div></td>
        </tr>
        <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>转贴自:		</strong></td>
            <td width="82%" align="left" style="padding:4px;">
                <asp:TextBox ID="txtCopyFrom" runat="server" /><div id="txtCopyFromTip"></div>
                          </td>
        </tr>
         <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>内容:		</strong></td>
            <td width="82%" align="left" style="padding:4px;"><DNTB:WebEditor ID="WebEditor1" runat="server" /><div id="WebEditor1Tip" ></div>  </td>
        </tr>
        <tr>
            <td width="18%" align="center" style="padding:4px;"><strong>包含图片:		</strong></td>
            <td width="82%" align="left" style="padding:4px;">&nbsp;<asp:CheckBox ID="chkPicture" runat="server" />是（如果选中的话会在标题前面显示[图文]）</td>
        </tr>
        <tr>
          <td align="center" style="padding:4px;" width="18%">
             <strong>首页图片:		</strong></td>
          <td align="left" style="padding:4px;" width="82%"><asp:TextBox ID="Txt_UpImg" 
                  runat="server" Width="265px" Text="images/nopic.jpg" ></asp:TextBox>&nbsp;<input type="button" class="go-wenbenkuang" value="上传图片" onclick="javascript:wy_addPhotoCat('../App/UploadArticle.aspx?inputobj=Txt_UpImg&ChannelType=<%=ChannelType %>&ChannelTypeId=<%=ChannelTypeId %>&ArticleType=<%=ArticleType %>','文章照片上传',500,200)"  />&nbsp;<input type="checkbox" id="picThumb" name="picThumb"/>预览照片</td>
        </tr>
        <tr>
            <td align="center" style="padding:4px;" width="18%">
                &nbsp;</td>
            <td align="left" style="padding:4px;" width="82%">
                <asp:Button ID="btnCreate" runat="server" Text="立即添加" onclick="btnCreate_Click" 
                     />
            </td>
        </tr>
      </table>
    </asp:Panel>
   </td>
   </tr>
</table>   


</form>   
</body>
</html>
